package edu.hqu.demo.service.impl;

import edu.hqu.demo.mapper.CourseMapper;
import edu.hqu.demo.pojo.Course;
import edu.hqu.demo.service.CourseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CourseServiceImpl implements CourseService{

    @Autowired
    private CourseMapper courseMapper;

    @Override
    public Course getCourseInformation(String Cno){
        return courseMapper.getCourseInformation(Cno);
    }

    @Override
    public List<Course> getAllCourse(String Sno){
        return courseMapper.getAllCourse(Sno);
    }

    @Override
    public List<Course> getSelectedCourse(String Sno){
        return courseMapper.getSelectedCourse(Sno);
    }

}
